package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.domain.model.Book;
import com.example.demo.domain.vo.BookVo;
import com.example.demo.mapper.BookMapper;
import com.example.demo.service.IBookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookServiceImpl extends ServiceImpl<BookMapper, Book> implements IBookService {
    @Autowired
    private BookMapper bookMapper;
    @Override
    public List<BookVo> getBookList() {
        return bookMapper.getBookList();
    }

    @Override
    public int updateStatuses(List<Long> bookIds) {
        return bookMapper.updateStatuses(bookIds);
    }


}
